package com.server.mapper;

import com.server.Example.OrdersExample;
import com.server.entity.Orders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * The interface Orders mapper.
 */
public interface OrdersMapper {
    /**
     * Count by example long.
     *
     * @param example the example
     * @return the long
     */
    long countByExample(OrdersExample example);

    /**
     * Delete by example int.
     *
     * @param example the example
     * @return the int
     */
    int deleteByExample(OrdersExample example);

    /**
     * Delete by primary key int.
     *
     * @param ordersId the orders id
     * @return the int
     */
    int deleteByPrimaryKey(Integer ordersId);

    /**
     * Insert int.
     *
     * @param record the record
     * @return the int
     */
    int insert(Orders record);

    /**
     * Insert selective int.
     *
     * @param record the record
     * @return the int
     */
    int insertSelective(Orders record);

    /**
     * Select by example list.
     *
     * @param example the example
     * @return the list
     */
    List<Orders> selectByExample(OrdersExample example);

    /**
     * Select by primary key orders.
     *
     * @param ordersId the orders id
     * @return the orders
     */
    Orders selectByPrimaryKey(Integer ordersId);

    /**
     * Update by example selective int.
     *
     * @param record  the record
     * @param example the example
     * @return the int
     */
    int updateByExampleSelective(@Param("record") Orders record, @Param("example") OrdersExample example);

    /**
     * Update by example int.
     *
     * @param record  the record
     * @param example the example
     * @return the int
     */
    int updateByExample(@Param("record") Orders record, @Param("example") OrdersExample example);

    /**
     * Update by primary key selective int.
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKeySelective(Orders record);

    /**
     * Update by primary key int.
     *
     * @param record the record
     * @return the int
     */
    int updateByPrimaryKey(Orders record);
}